package mylab.starters.oss.config;

import mylab.starters.oss.OssRule;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>
 * 对象存储自动装配
 * </p>
 */
@Configuration
@EnableConfigurationProperties({OssProperties.class})
public class OssAutoConfiguration {
    @Bean
    @ConditionalOnMissingBean
    public OssRule ossRule() {
        return new OssRule() {
        };
    }
}
